package com.kaifamiao.demo.d0729.pm;

public class Sub02 extends Sup02{

    int a = 30;
    static int b = 40;

    static{
        b = 41;
        System.out.println("sub02 static{}");
    }

    {
        a = 31;
        System.out.println("sub02 {}");
    }

    public Sub02(){
        System.out.println("sub02()");
        print();
    }

    @Override
    public void print() {
        System.out.println("sub02.print()");
        System.out.println("a = " + a);
        System.out.println("b = " + b);
    }
}
